import { defineStore } from "pinia";
import { ref } from "vue";

export const useDetailStore = defineStore("detailData", () => {
	const detail = ref({});
	function setDetailData(value: Record<string, any>) {
		detail.value = value;
	}
	function getDetailData() {
		return detail.value;
	}

	return { getDetailData, setDetailData };
});
